<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceServiceProviders extends Model
{

    use SoftDeletes;

    /**
     * The table associated with the model.
     */
    protected $table = 'device_service_providers';

    public $timestamps = true;

    protected $dateFormat = 'U';

    const CREATED_AT = 'created_at';

    const UPDATED_AT = 'updated_at';


    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = [
        "id",
        "name",
        "pid",
        "app_id",
        "is_auth",
        "user_id",
        "app_auth_code",
        "app_auth_token",
        "created_at",
        "updated_at",
        "deleted_at"
    ];

    protected $casts =[
        "created_at" => "datetime:Y-m-d H:i:s",
    ];
}
